﻿<DockPanel x:Class="HappyBa.Pages.ReadyToDevPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:loc="clr-namespace:HappyBa.Code.Localization"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Mnk.Library.WpfControls.Components.CheckableTreeView;assembly=Mnk.Library.WpfControls"
             xmlns:components="clr-namespace:HappyBa.Components"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel DockPanel.Dock="Bottom" Margin="10" >
        <Button Content="{loc:Tr Refresh}" Click="RefreshClick" Padding="10 1" DockPanel.Dock="Right"/>
        <TextBlock Name="Info" HorizontalAlignment="Left"/>
    </DockPanel>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition MinHeight="64"/>
            <RowDefinition Height="5"/>
            <RowDefinition MinHeight="64"/>
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0">
            <ListBox Name="Items">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding}" Margin="1" TextTrimming="CharacterEllipsis" TextWrapping="Wrap"/>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </DockPanel>
        <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch"/>
        <components:DetailsView DataContext="{Binding ElementName=Items, Path=SelectedValue}" Grid.Row="2"/>
    </Grid>
</DockPanel>
